package com.fh.feign;

import com.fh.fallback.StockQueryClientFallback;
import com.fh.fallback.StockUpdateClientFallback;
import com.fh.model.ProductSku;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "stock-update",fallback = StockUpdateClientFallback.class)
public interface StockUpdateClient {

    @PutMapping("stockupdate/update")
    public  int  update(@RequestBody ProductSku productSku);

}
